﻿using System;
using System.Collections.Generic;

namespace Bookvar.ObjectModel.Collections
{
    [Serializable]
    public class CustomPropertyCollection : ObservableKeyedCollection<string, CustomProperty>
    {
        public CustomPropertyCollection()
        {
        }

        public CustomPropertyCollection( IEnumerable<CustomProperty> items ) : base( items )
        {
        }

        protected override string GetKeyForItem( CustomProperty item )
        {
            return item.Key;
        }
    }
}
